package com.bw.controller;

import com.bw.service.DoctorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
public class DoctorController {
    @Autowired
    DoctorService doctorService;

    @RequestMapping("/doctorlist")
    public List<Map<String,Object>> doctorlist(){
        return doctorService.doctorlist();
    }
}
